<?php
    $users = $data['UserTopicGroup'];
    $self = $data['TopicsGroup'];
?>

<h2><?php echo $self['name'] ?></h2>

<?php
    if ($appartient){
        echo '<div class="join" style="float : left;">';
            echo $this->Form->create(); 
            echo $this->Form->hidden('left',array(
                'value' => false,
                'name' => 'left'
            ));
            echo $this->Form->end('Quitter ce groupe',array(
                'type' => 'button',
                'label' => '',
                'style' => 'width:200px'
            ));
        echo '</div>';
    }
    else {
        echo '<div class="join" style="float : left;">';
            echo $this->Form->create(); 
            echo $this->Form->hidden('join',array(
                'value' => true,
                'name' => 'join'
            ));
            echo $this->Form->end('Rejoindre ce groupe',array(
                'type' => 'button',
                'label' => '',
                'style' => 'width:200px'
            ));
        echo '</div>';
    } 
        
    
?>

